package com.su.gulimall.auth.feign;

import com.su.common.utils.R;
import com.su.gulimall.auth.vo.LoginVo;
import com.su.gulimall.auth.vo.SocialUserVo;
import com.su.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("gulimall-member")
public interface RegisterFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);
    @PostMapping("/member/member/login")
    R login(@RequestBody LoginVo vo);
    @PostMapping("/member/member/oauth2/login")
     R authLogin(@RequestBody SocialUserVo vo);
}
